package cn.yanghan.client;

import cn.yanghan.doc.CourseDoc;
import cn.yanghan.utils.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

//搜索服务的Feign的客户端接口
@FeignClient(value = "hrm-search",fallbackFactory = SearchServiceClientFalliback.class)
public interface SearchServiceClient {
    //添加课程
    @PostMapping("/course/add")
    AjaxResult add(@RequestBody CourseDoc courseDoc);
}
